Skip to content

chore/enforce-node-22-types#2124

Merged
markscott-ms merged 4 commits intofinos:mainfrom
rocketstack-matt:chore/enforce-node-22-types
Feb 9, 2026
Merged

chore/enforce-node-22-types#2124
markscott-ms merged 4 commits intofinos:mainfrom
rocketstack-matt:chore/enforce-node-22-types

Conversation

@rocketstack-matt
Copy link
Member

Description

Closes #2123

Type of Change

  • 🐛 Bug fix (non-breaking change which fixes an issue)
  • ✨ New feature (non-breaking change which adds functionality)
  • 💥 Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • 📚 Documentation update
  • 🎨 Code style/formatting changes
  • ♻️ Refactoring (no functional changes)
  • ⚡ Performance improvements
  • ✅ Test additions or updates
  • 🔧 Chore (maintenance, dependencies, CI, etc.)

Affected Components

  • CLI (cli/)
  • Shared (shared/)
  • CALM Widgets (calm-widgets/)
  • CALM Hub (calm-hub/)
  • CALM Hub UI (calm-hub-ui/)
  • Documentation (docs/)
  • VS Code Extension (calm-plugins/vscode/)
  • Dependencies
  • CI/CD

Commit Message Format ✅

Testing

  • I have tested my changes locally
  • I have added/updated unit tests
  • All existing tests pass

Checklist

  • My commits follow the conventional commit format
  • I have updated documentation if necessary
  • I have added tests for my changes (if applicable)
  • My changes follow the project's coding standards

…consistency

- Add .nvmrc pinning to Node 22 for nvm users
- Add .npmrc with engine-strict=true to reject wrong Node versions
- Add @types/node override (^22.0.0) preventing transitive v25 resolution
- Add Renovate allowedVersions (<23.0.0) for @types/node
- Dedupe lockfile to remove @types/node@25 pollution

Closes finos#2123
@rocketstack-matt rocketstack-matt requested a review from a team as a code owner February 9, 2026 14:42
Copilot AI review requested due to automatic review settings February 9, 2026 14:42
@github-actions github-actions bot added the config label Feb 9, 2026
@rocketstack-matt rocketstack-matt force-pushed the chore/enforce-node-22-types branch from e24a1be to fa3da7e Compare February 9, 2026 14:45
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR aims to prevent Node-version drift (and resulting lockfile/type inconsistencies) by enforcing Node 22 usage across installs/updates, constraining @types/node to v22, and regenerating the root lockfile to remove Node 25 pollution.

Changes:

  • Add .nvmrc and .npmrc (engine-strict=true) to steer/enforce Node version usage during installs.
  • Constrain @types/node to Node 22 via root package.json#overrides and a Renovate allowedVersions rule.
  • Regenerate package-lock.json to dedupe and remove hoisted @types/node@25, plus associated dependency tree churn; document the policy in AGENTS.md.

Reviewed changes

Copilot reviewed 5 out of 7 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
.npmrc Enables engine-strict enforcement during npm installs.
.nvmrc Adds an nvm pin intended to keep local Node aligned with CI.
package.json Adds a root override to force @types/node to v22.
renovate.json Prevents Renovate from proposing @types/node v23+ updates.
package-lock.json Dedupes/updates dependency graph to remove Node 25 / types drift.
AGENTS.md Documents Node 22 requirements and rationale for contributors.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@rocketstack-matt rocketstack-matt force-pushed the chore/enforce-node-22-types branch from 46233fa to 43f0a57 Compare February 9, 2026 15:38
@rocketstack-matt rocketstack-matt marked this pull request as draft February 9, 2026 15:42
@rocketstack-matt rocketstack-matt force-pushed the chore/enforce-node-22-types branch from 43f0a57 to 2e19b46 Compare February 9, 2026 15:48
@rocketstack-matt rocketstack-matt force-pushed the chore/enforce-node-22-types branch from 61ae50e to e5c091b Compare February 9, 2026 15:54
@rocketstack-matt rocketstack-matt marked this pull request as ready for review February 9, 2026 15:55
Copy link
Contributor

@markscott-ms markscott-ms left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense. Node 20 is EOL in a couple of months.

@markscott-ms markscott-ms merged commit fd94983 into finos:main Feb 9, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(deps): enforce Node 22 version for @types/node and lockfile consistency

3 participants